.class Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;
.super Ljava/lang/Object;
.source "CommunityAppRankingFragment.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 84
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "error"    # Lretrofit/RetrofitError;

    .prologue
    .line 111
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # operator-- for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$310(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)I

    .line 112
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    const/4 v1, 0x0

    # setter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z
    invoke-static {v0, v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$102(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Z)Z

    .line 113
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->onRefreshComplete()V

    .line 114
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 84
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 8
    .param p1, "jo"    # Lorg/json/JSONObject;
    .param p2, "resp"    # Lretrofit/client/Response;

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 88
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mIsRequesting:Z
    invoke-static {v3, v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$102(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Z)Z

    .line 90
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    const-string v4, "has_next"

    invoke-virtual {p1, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v4

    if-eqz v4, :cond_12

    move v1, v2

    :cond_12
    # setter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mHasNext:Z
    invoke-static {v3, v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$202(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Z)Z

    .line 91
    invoke-static {p1}, Lcom/brixd/niceapp/community/model/RankingAppModel;->parseRankingAppModelsWithJsonObj(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v0

    .line 93
    .local v0, "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/RankingAppModel;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPage:I
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$300(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)I

    move-result v1

    if-gt v1, v2, :cond_41

    .line 94
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;
    invoke-static {v1, v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$402(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;Ljava/util/List;)Ljava/util/List;

    .line 98
    :goto_26
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mAdapter:Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$500(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->notifyDataSetChanged()V

    .line 100
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mPullToRefreshListView:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->onRefreshComplete()V

    .line 102
    new-instance v1, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2$1;

    invoke-direct {v1, p0, p1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2$1;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;Lorg/json/JSONObject;)V

    .line 106
    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2$1;->start()V

    .line 107
    return-void

    .line 96
    :cond_41
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$2;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_26
.end method
